<%= error_messages_for 'category' %>

<!--[form:category]-->
<p><label for="category_title">Type</label>
 <select name="category[type_id]">
 <% @types.each do |type| -%>
 <option value="<%= type.id -%>">
 <%= type.title -%>
 </option>
 <% end %>
 </select>
</p>

<p><label for="category_title">Title</label><br/>
<%= text_field 'category', 'title'  %></p>

<p><label for="category_description">Description</label><br/>
<%= text_field 'category', 'description'  %></p>

<p><label for="category_position">Position</label><br/>
<%= text_field 'category', 'position'  %></p>
<!--[eoform:category]-->

